#ifndef game_audio_h
#define game_audio_h

#include <string>

namespace audio {

    typedef int SoundId;
    // Load a sound effect from the resource directory.
    SoundId LoadSound(const std::string &name);
    // Play a previously loaded sound at the given volume (1=max).
    void PlaySound(SoundId sound_id, float volume=1.0f);

    typedef int MusicId;
    // Load some music from the resource directory.
    MusicId LoadMusic(const std::string &name);
    // Play a previously-loaded piece of music. Only 1 music
    // can be playing at a time.
    void PlayMusic(MusicId music_id);
    // Stop any currently played music.
    void StopMusic();

    void Init(const std::string &resource_path);     

}

#endif
